<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('用户资金记录详情')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tranlog-edit" th:object="${bizCustomerTranLog}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">客户ID：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{customerId}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">交易号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{tranNo}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付渠道：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('payChannel',bizCustomerTranLog.payChannel)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">账变类型：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('billChangeType',bizCustomerTranLog.billChangeType)}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">交易类型：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('tranType',bizCustomerTranLog.tranType)}"></div>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">交易金额(元)：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="tranFee" th:field="*{tranFee}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">交易金额(元)：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{payFee}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${#dates.format(bizCustomerTranLog.createTime, 'yyyy-mm-dd HH:mm:ss')}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="*{remark}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">启用状态：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('enableStatus',bizCustomerTranLog.status)}"></div>
                </div>
            </div>
        </form>
        <div class="form-control-static" style="text-align:center;">
            <button th:onclick="'javascript:closeItem()'" class="btn btn-danger" type="button">关闭</button>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        //使页面不可编辑
        function disableOcx() {
            var form = document.forms[0];
            for ( var i = 0; i < form.length; i++) {
                var element = form.elements[i];
                //部分元素可以编号 element.name 是元素自定义 name
                if (element.name != "auditEntity.auditContent"
                        && element.name != "auditEntity.auditAutograph"
                        && element.name != "auditEntity.auditTime"
                        && element.name != "auditEntity.auditState"
                        && element.name != "submitBtn"
                        && element.name != "reset"
                        && element.name != "id"
                        && element.name != "processInstanceId"
                        && element.name != "updateForm") {
                    element.disabled = "true";
                }
            }
        }
        window.onload = disableOcx;//当页面加载的时候执行此函数
        var prefix = ctx + "biz/tranlog";

        $("input[name='createTime']").datetimepicker({
            format: "yyyy-mm-dd HH:mm:ss",
            minView: "1",
            autoclose: true
            // format: "yyyy-mm-dd",
            // minView: "month",
            // autoclose: true
        });
    </script>
</body>
</html>